package com.verssor.api;

import javax.enterprise.context.RequestScoped;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import java.io.InputStream;

@Path("/publicidad")
@RequestScoped
public class PublicidadAPI {

    @GET
    @Path("/download")
    @Produces("video/mp4")
    public Response download( @QueryParam("id")  Integer id) {
        //
        
        Response.ResponseBuilder response = Response.ok((Object) id);
        response.header("Content-Disposition", "attachment; filename=\"test_text_file.txt\"");
        return response.build();
    }
    
    


}
